package com.sc.softmgr.business.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.acc.softmgr.model.SysDict;
import com.acc.softmgr.model.SysDictExample;
import com.sc.softmgr.business.dao.SysDictMapper;
import com.sc.softmgr.business.service.ISysDictService;

/**
 * 
 * @content
 * 
 * @date Wed Jun 14 10:58:59 CST 2017
 * 
 * @author OprCalf
 * 
 */
@Service
public class SysDictServiceImpl implements ISysDictService {

	@Autowired
	private SysDictMapper sysDictDao;

	@Override
	public long countByExample(SysDictExample example) {
		return sysDictDao.countByExample(example);
	}

	@Override
	public int deleteByExample(SysDictExample example) {
		return sysDictDao.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return sysDictDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(SysDict record) {
		return sysDictDao.insert(record);
	}

	@Override
	public int insertSelective(SysDict record) {
		return sysDictDao.insertSelective(record);
	}

	@Override
	public int insertList(List<SysDict> records) {
		for (SysDict record : records) {
			insert(record);
		}
		return 1;
	}

	@Override
	public List<SysDict> selectByExample(SysDictExample example) {
		return sysDictDao.selectByExample(example);
	}

	@Override
	public SysDict selectByPrimaryKey(Integer id) {
		return sysDictDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(SysDict record, SysDictExample example) {
		return sysDictDao.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(SysDict record, SysDictExample example) {
		return sysDictDao.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(SysDict record) {
		return sysDictDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(SysDict record) {
		return sysDictDao.updateByPrimaryKey(record);
	}

}
